package cn.k.mapper;

import cn.k.domain.Consumption;
import cn.k.domain.Employee;
import cn.k.qo.ConsumptionQueryObject;
import cn.k.qo.QueryObject;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface ConsumptionMapper {
    int deleteByPrimaryKey(Long id);

    int insert(Consumption record);

    Consumption selectByPrimaryKey(Long id);

    List<Consumption> selectAll();

    int updateByPrimaryKey(Consumption record);

    List<Consumption> selectForList(ConsumptionQueryObject qo);


    //更改状态
    void updateStatus(@Param("id") Long id, @Param("status") int status);


}